<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ taglib uri="/struts-tags" prefix="s" %>

<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
		<title>Review</title>
		<link rel="stylesheet" type="text/css" href="css/coms.css">
		<link type="text/css" href="css/jquery-ui-1.8.13.custom.css" rel="stylesheet" />	
		<script type="text/javascript" src="scripts/jquery-1.5.1.min.js"></script>
		<script type="text/javascript" src="scripts/jquery-ui-1.8.13.custom.min.js"></script>
		<script type="text/javascript">
		$(function(){
				$('#tabs').tabs();
			});
			
		jQuery(document).ready(function() {
			
				$('a').click(function(e){
				
		   });
				$("#tab1").click(function(e){
					$("#tabs-1").attr("src","reviewedList.action" );
			   });
				$("#tab2").click(function(e){
					$("#tabs-2").attr("src","assignedList.action" );
			   });
		});
		
		function autoResize(id){
		    var newheight;
		    var newwidth;

		    if(document.getElementById){
		        newheight=document.getElementById(id).contentWindow.document .body.scrollHeight;
		        newwidth=document.getElementById(id).contentWindow.document .body.scrollWidth;
		    }

		    document.getElementById(id).height= (newheight) + "px";
		    document.getElementById(id).width= (newwidth) + "px";
		}
		</script>
	</head>
<body>
	    
   
      <div style="width:1300px;height:320px; font-size:small;">
		<div id="tabs" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
			<ul>
				<li><a id="tab1" href="#tabs-1">Reviewed Files</a></li>
				<li><a id="tab2" href="#tabs-2">File to be reviewed</a></li>
				
			</ul>
				<iframe id="tabs-1" src="reviewedList.action" width="100%" height="200px" marginheight="0" frameborder="0" onLoad="autoResize('iframe1');">
		          <p>Tab 1 content</p>
		       </iframe>
		       <iframe id="tabs-2" src="assignedList.action" width="100%" height="200px" marginheight="0" frameborder="0" onLoad="autoResize('iframe1');">
		          <p>Tab 2 content</p>
		       </iframe> 
			
			
		</div>
	</div>

</body>
</html>